package com.recharge.common.enums;

public enum ErrorCode {

    SYSTEM_EXCEPTION(500, "系统异常"),

    SYSTEM_COPY_OBJECT_ERROR(500, "复制对象错误"),

    ADD_USER_ERROR(1001, "添加用户失败"),

    EDIT_USER_ERROR(1002, "修改用户失败"),

    DELETE_USER_ERROR(1003, "删除用户失败"),

    GET_USER_ERROR(1004, "获取用户失败"),

    LIST_USER_ERROR(1005, "获取用户列表失败"),

    USER_DOES_NOT_EXIST(1006, "用户名不存在");

    private int code = 0;

    private String msg = "";

    private ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
